// 部门表
import {defineStore} from 'pinia'

export const useDepartmentStore = defineStore('department', {
    state: () => {
        return {
            departments: [],
            isExecute: false
        }
    },
    getters: {},
    actions: {
        destroyForm() {
            this.departments = []
        },
        createdForm(data) {
            this.departments.push({
                value: data.codeId,
                label: data.dictName
            })
        },
        execute() {
            this.isExecute = true
        }
    }

})
